require "rubygems"
require "activerecord"
require "yaml"
configuration_options = YAML::load(File.open(File.expand_path(File.dirname(__FILE__) + "/../config/database.yml")))[ENV['RAILS_ENV'] || 'development']

ActiveRecord::Base.establish_connection(configuration_options)

p ActiveRecord::Base.connection.select_one('select * from postings limit 1')